package com.example.badminton.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("booking")
public class Booking {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long courtId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date; // 预定日期
    private String timeSlot; // 时间段，如08:00-09:00
    private Integer status; // 0-待支付 1-已支付 2-已取消
} 